package cn.ycc1.myssmupper;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * springBoot应用开发上
 * 上：spring
 * 中：springMVC
 * 下：mybatis
 * https://docs.spring.io/spring-boot/3.3/maven-plugin/using.html
 * Using the Plugin
 * <maven.compiler.source>${java.version}</maven.compiler.source>
 * <maven.compiler.target>${java.version}</maven.compiler.target>
 * Inheriting the Starter Parent POM
 * Using Spring Boot without the Parent POM
 */
@SpringBootApplication
public class MySsmUpperApplication {

	public static void main(String[] args) {

		ConfigurableApplicationContext ioc = SpringApplication.run(MySsmUpperApplication.class, args);
		System.out.println("ioc = " + ioc);
		System.out.println("---------------------------------------------------");

		String[] names = ioc.getBeanDefinitionNames();
		for(String name : names) {
			System.out.println("name = " + name);
		}

	}

}
